/*
 * This file is part of the Wildfire Chat package.
 * (c) Heavyrain2012 <heavyrain.lee@gmail.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

package com.yance.fim.hazelcast;


import com.hazelcast.map.MapStore;
import com.yance.fim.User;

import java.util.Collection;
import java.util.Map;

/**
 * @author yance
 */
public class UserLoader implements MapStore<String, User> {
    @Override
    public void store(String s, User user) {
        System.out.println("store");
    }


    @Override
    public void storeAll(Map<String, User> map) {
        System.out.println("storeAll");
    }

    @Override
    public void delete(String s) {
        System.out.println("delete");
    }

    @Override
    public void deleteAll(Collection<String> collection) {
        System.out.println("deleteAll");
    }

    @Override
    public User load(String s) {
        User user = new User();
        user.setAge(10);
        user.setName("yance");
        user.setQq("2444864349");
        return user;
    }

    @Override
    public Map<String, User> loadAll(Collection<String> collection) {
        return null;
    }

    @Override
    public Iterable<String> loadAllKeys() {
        return null;
    }
}
